import request from '@/api/request'

//品牌列表分页
function findBrandByPage(start,limit,data) {
  return request({
    url: `/lejuAdmin/brand/findBrandByPage/${start}/${limit}`,
    data
  })
}

//添加品牌
function addBrand(data) {
  return request({
    url: `/lejuAdmin/brand/addBrand`,
    method:'POST',
    data
  })
}

//删除品牌
function delBrand(id,data) {
  return request({
    url: `/lejuAdmin/brand/delBrand/${id}`,
    method:'DELETE',
    data
  })
}

//更新品牌
function updateBrand(data) {
  return request({
    url: `/lejuAdmin/brand/updateBrand`,
    method:'POST',
    data
  })
}

//显示隐藏
function switchShowStatus(data) {
  return request({
    url: `/lejuAdmin/brand/switchShowStatus`,
    method:'POST',
    data
  })
}



export {
  findBrandByPage,addBrand,delBrand,updateBrand,switchShowStatus
}